﻿using System;
using System.Collections.Generic;

namespace Models
{
    /// <summary>
    /// 资产表
    /// </summary>
    public class AssetHead
    {

        /// <summary>
        /// 主键
        /// </summary>
        public decimal ID { get; set; }

        /// <summary>
        /// 资产编号
        /// </summary>
        public string AssetNo { get; set; }

        /// <summary>
        /// 资产名称
        /// </summary>
        public string AssetName { get; set; }

        /// <summary>
        /// 规格型号
        /// </summary>
        public string Specs { get; set; }

        /// <summary>
        /// 资产单价（元）
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 计量单位
        /// </summary>
        public string Unit { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        public int TypeID { get; set; }

        /// <summary>
        /// 类别名称
        /// </summary>
        public string TypeName { get; set; }

        /// <summary>
        /// 购买日期
        /// </summary>
        public DateTime BuyDate { get; set; }

        /// <summary>
        /// 使用部门ID
        /// </summary>
        public int DeptID { get; set; }

        /// <summary>
        /// 使用部门名称
        /// </summary>
        public string DeptName { get; set; }

        /// <summary>
        /// 使用人员ID
        /// </summary>
        public int StaffID { get; set; }

        /// <summary>
        /// 使用人员名称
        /// </summary>
        public string StaffName { get; set; }

        /// <summary>
        /// 存放地点
        /// </summary>
        public string Location { get; set; }

        /// <summary>
        /// 是否配置RFID(0:否;1:是)
        /// </summary>
        public int IsOK { get; set; }

        /// <summary>
        /// RFID卡号
        /// </summary>
        public string RFIDNo { get; set; }

        /// <summary>
        /// 维护开始时间
        /// </summary>
        public DateTime MaintainTimeStart { get; set; }

        /// <summary>
        /// 维护结束时间
        /// </summary>
        public DateTime MaintainTimeEnd { get; set; }

        /// <summary>
        /// 维护周期（月）
        /// </summary>
        public double M_Cycle { get; set; }

        /// <summary>
        /// 供应商ID
        /// </summary>
        public int SupplierID { get; set; }

        /// <summary>
        /// 供应商名称
        /// </summary>
        public string SupplierName { get; set; }

        /// <summary>
        /// 联系人（根据供应商获取）
        /// </summary>
        public string S_Contacts { get; set; }

        /// <summary>
        /// 联系方式（根据供应商获取）
        /// </summary>
        public string S_Phone { get; set; }

        /// <summary>
        /// 资产状态（1：在用；0：闲置；2：报废；3：变卖  默认 0【领用时为 1、归还为0】）
        /// </summary>
        public int AssetStatus { get; set; }

        /// <summary>
        /// 是否删除（0：未删除；1：已删除）
        /// </summary>
        public int IsDelete { get; set; }

        /// <summary>
        /// 相关文件
        /// </summary>
        public List<FileData> FileList { get; set; }

        /// <summary>
        /// 附属资产集合
        /// </summary>
        public List<AssetBody> ItemList { get; set; }

    }
}
